package com.tz.system.role.service;

import java.util.List;

import com.tz.system.role.model.TMgtRolePrivate;

/**
 * 
 * @author mike
 * 
 */

public interface RolePrivateService {
	
	public List<TMgtRolePrivate> getListByRoleCode(String roleCode);

	public void saveRolePrivateList(List<TMgtRolePrivate> list);

	public void saveRolePrivate(TMgtRolePrivate entity);

	public void removeRolePrivate(TMgtRolePrivate entity);

	/**
	 * 根据角色code移除角色对应菜单信息
	 * @param roleCode
	 */
	public void removePrivateByRoleCode(String roleCode);
	
	public void removeRolePrivateList(List<TMgtRolePrivate> list);

	public void removeRpeById(Integer id);

	public void removeRpByIdList(List<Integer> id);

	public TMgtRolePrivate checkExists(String roleCode, String tMcode);

	public List<TMgtRolePrivate> queryMenuCode(String roleCode);
	
	public boolean checkSonExists(String roleCode, String tMcode);

	public void removeRolePrivate(String roleCode, String tMcode);
	
}
